package com.gl.portal.system.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

import com.gl.portal.system.entity.SysRoleDept;

public interface SysRoleDeptRepository extends JpaRepository<SysRoleDept, Long>, JpaSpecificationExecutor<SysRoleDept> {

	@Transactional
	void deleteByRoleId(Long roleId);

	List<SysRoleDept> findByRoleIdIn(List<Long> roleIds);

}
